using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Resources;
using System.Globalization;

namespace LPV_POS.mh_pos.mh_doanhthu
{
    public partial class mh_list_khohang : DevExpress.XtraEditors.XtraForm
    {
        CultureInfo culture;
        public int str_loaibaocao = 0;

        #region "Muti language"

        private void SetLanguage_banhang(string cultureName)
        {
            try
            {
                culture = CultureInfo.CreateSpecificCulture(cultureName);
                ResourceManager rm = new ResourceManager("LPV_POS.Muti_language.MyResource", typeof(mh_list_khohang).Assembly);
                lbel_kho.Text = rm.GetString("khohang", culture);
                lbel_chitietnhapxuat.Text = rm.GetString("chitietnhapxuat", culture);
                lbel_thoat.Text = rm.GetString("thoat", culture);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "Note");
            }

        }

        #endregion
        public mh_list_khohang()
        {
            InitializeComponent();
            culture = CultureInfo.CurrentCulture;
        }

        private void mh_list_khohang_Load(object sender, EventArgs e)
        {
            cpublic ocpublic = new cpublic();
            string str_lang = ocpublic.Registry_Get("mh_main_lang");
            if (str_lang == "")
                str_lang = "vi-VN";
            SetLanguage_banhang(str_lang);
        }

        private void lbel_kho_Click(object sender, EventArgs e)
        {
            str_loaibaocao = 1;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void lbel_chitietnhapxuat_Click(object sender, EventArgs e)
        {
            str_loaibaocao = 2;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void lbel_thoat_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }


    }
}